package com.cecsmsserve.controller;


import com.cecsmsserve.service.ISysFunctionService;
import com.cecsmsserve.util.result.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 王郝浠
 * @since 2024-04-18
 */
@CrossOrigin
@RestController
@RequestMapping("/sysFunction")
public class SysFunctionController {

    @Autowired
    ISysFunctionService service;

    @GetMapping("/selectAll")
    public CommonResult selectAll(){
        return service.selectAll();
    }

    @GetMapping("/selectByRid/{rid}")
    public CommonResult selectByRid(@PathVariable int rid){
        return service.selectByRid(rid);
    }
}
